﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using System.Data;
using DAO;

namespace BUS
{
    public class KhachHangBUS
    {
        //Them Khach hang
        KhachHangDAO khdao = new KhachHangDAO();
        public int ThemKhachHang(KhachHangDTO kh)
        {
            return khdao.ThemKhachHang(kh);
        }
        //cap nhat khach hang
        public int CapNhatKhachHang(KhachHangDTO kh)
        {
            return khdao.CapNhatKhachHang(kh);
        }
        //load danh sach khach hang
        public DataTable LoadDanhSachKhachHang()
        {
            return khdao.LoadDanhSachKhachHang();
        }
        //load thong tin khach hang
        public KhachHangDTO LoadThongTinKhachHang(string taikhoan)
        {
            return khdao.LoadThongTinKhachHang(taikhoan);
        }
        //kiem tra tinh trang khach hang
        public int KiemTraTinhTrang(string taikhoan)
        {
            return khdao.KiemTraTinhTrang(taikhoan);
        }
        //tim kiem nguoi dung
        public DataTable TimKiemKhachHang(string taikhoan)
        {
            return khdao.TimKiemKhachHang(taikhoan);
        }
    }
}
